$(function(){
	$('.showScoreBtn').click(function() {
		var scoreId = $(this).attr('scoreId');
		$.ajax({
			type: 'POST',
			url: 'showScore',
			data: {scoreId: scoreId},
			dataType: "json",
			success: function(data){
				$('#userName').text(data.userName);
				$('#subjectName').text(data.subjectName);
				$('#examTime').text(data.examTimeString);
				$('#score').text(data.score);
				$('#showScoreModal').modal('show');
			}
		});	
	});//使用jqprint打印modal框内的内容
	$('#scorePrint').click(function() {
		$('#showScoreModal .modal-body').jqprint();
	});	
});